package it.massetti.scoponescientifico.controller;
import it.massetti.scoponescientifico.game.Game;
import it.massetti.scoponescientifico.game.GameAction;

public class GameEngine implements ActionReceiver {

	private Game gameState;

	/**
	 * The constructor of the class.
	 * @param gameState the model of the game
	 *
	 */
	public GameEngine(Game gameState) {
		this.gameState = gameState;
		
	}
	
	/*
	
	 * Setter method for listeners
	 * @param listeners the views that implement NotificationListener, in other words they are the views which can listen
	 * the notifications of the model
	 
	
	public void setNotificationListeners(List<NotificationListener> listeners) {
		this.notificationListeners = listeners;
	}*/
	
	@Override
	public void receiveAction(GameAction action) {
		gameState.processAction(action);
	}

}
